const fs = require('fs');

// key长度
const KEY_LEN = 1024;
// key条数
const KEY_COUNT = 2048;
// key可选字符
const CHARS = 'L1I7Y5O3N2G3J4I8ATINGYUBUGJ';

let arr = [];
for (let i = 0 ; i < KEY_COUNT ; i ++ ){
    let key = '';
    for (let j = 0; j < KEY_LEN; j ++ ) {
        key += CHARS[Math.floor(Math.random() * CHARS.length)]
    }
    arr.push(key)
}

fs.writeFileSync('.keys', arr.join('\n'));

console.log(`生成 ${KEY_COUNT} 条keys`);